<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>业务规则调用日志修改</title>
<link href="../../static/plugin/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/plugin/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-edit.css" rel="stylesheet" type="text/css"/>
<script src="../../static/plugin/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/plugin/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/plugin/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout" scroll="no">
	<form id="ff" method="post">
		<div class="esaas-info-title">业务规则调用日志信息</div>
		<table class="esaas-info-edit-table">
			<tr>
				<td width="15%" align="right">日志记录标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text" readOnly
					name="logId" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">业务流水号：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="bizSerno" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">适配机构代码：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterOrgNo" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">适配机构名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterOrgName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">适配流程ID：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterFlowId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">适配流程名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterFlowName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">适配产品编号：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterPrdCode" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">适配产品名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterPrdName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">适配业务系统代码：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterSysCode" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">适配的自定义维度1：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterCustomDim1" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">适配的自定义维度2：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="adapterCustomDim2" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">目标规则类型：</td>
				<td width="35%"><select class="easyui-combobox"
					id="ruleTargetType" name="ruleTargetType"
					style="width: 100%; height: 25px;" 
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:RULE_TARGET_TYPE">
				</select></td>
			</tr>
			<tr>
				<td width="15%" align="right">目标规则ID：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="ruleTargetId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">目标规则名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="ruleTargetName" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">请求信息：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="requestBody" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">响应信息：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="responseBody" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">规则执行结果：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="ruleExecResult" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">操作人：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="operUserid" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">操作时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text" 
					name="operTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
		</table>
	</form>
	<div style="text-align: center; padding: 15px">
		<a href="javascript:void(0)" class="easyui-linkbutton"
			onclick="submitForm()">&nbsp;保&nbsp;存&nbsp;</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>		
		$(function() {
			var logId = $.getUrlParam('logId');
			$.restfulGet('../../api/biz/rule/log/' + logId,null,function(data){
					$('#ff').form('load', {
						logId : data.rows.logId,
						bizSerno : data.rows.bizSerno,
						adapterOrgNo : data.rows.adapterOrgNo,
						adapterOrgName : data.rows.adapterOrgName,
						adapterFlowId : data.rows.adapterFlowId,
						adapterFlowName : data.rows.adapterFlowName,
						adapterPrdCode : data.rows.adapterPrdCode,
						adapterPrdName : data.rows.adapterPrdName,
						adapterSysCode : data.rows.adapterSysCode,
						adapterCustomDim1 : data.rows.adapterCustomDim1,
						adapterCustomDim2 : data.rows.adapterCustomDim2,
						ruleTargetType : data.rows.ruleTargetType,
						ruleTargetId : data.rows.ruleTargetId,
						ruleTargetName : data.rows.ruleTargetName,
						requestBody : data.rows.requestBody,
						responseBody : data.rows.responseBody,
						ruleExecResult : data.rows.ruleExecResult,
						operUserid : data.rows.operUserid,
						operTime : data.rows.operTime
					});					
			});
		});
	
		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPut('../../api/biz/rule/log', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
